import Vue from 'vue'
import Vuex from 'vuex'
import {get} from '@/utils/request'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // 文章详情
    articleData:[]
  },
  mutations: {
    
  },
  actions: {
    async getArticleDetial({commit},playload){
      let res = await get('/index/article/findById',playload)
      console.log(res);
      // commit('SET_ARTICLEDETAIL')
    }
  },
  modules: {

  }
})
